//
//  MenuCell.m
//  BusinessMarket
//
//  Created by Michael Li on 2018/11/29.
//  Copyright © 2018年 Michael Li. All rights reserved.
//

#import "MenuCell.h"
#import "HomeModel.h"
@interface MenuCell()
@property(nonatomic,strong) UILabel *titleL;
@end
@implementation MenuCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.titleL = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, kUIScreen.size.width, kHeight)];
        self.titleL.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:self.titleL];
        self.titleL.textColor = kLabel102Color;
        self.titleL.font = [UIFont systemFontOfSize:14];
        
    }
    return self;
}
- (void)setIndexPath:(NSIndexPath *)indexPath {
    _indexPath = indexPath;
}
- (void)setHomeModel:(HomeModel *)homeModel
{
    _homeModel = homeModel;
    //    XLog(@"model.show:%d",model.show);
    if (homeModel.show) {
       self.titleL.textColor = kOrangeBg;
    }else {
       self.titleL.textColor = kLabel102Color;
    }
    self.titleL.text = homeModel.content;
}
@end
